<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    </style>
</head>

<body>
    <input type="button" value="按钮" onclick="f1()" name="" id="">
    <script>
        function f1() {
            console.log("f1")
        }
        f1();
        function f2(name, age) {
            console.log(name + ":" + age);
        }
        f2("刘备", 15);
        function f3() {
            return "王冉婷";
        }
        console.log(f3());
        function f4(x, y) {
            return x * y;
        }
        console.log(f4(8, 9));

        let f5 = function (name, age) {
            console.log(name + ":" + age);
        }
        f5("张三", 99);

        let f6 = new Function("name", "age", "console.log(name+':'+age)");
        f6("无盎司", 55);

















    </script>

</body>

</html>